package com.witdata.common.mapper;

import com.witdata.common.domain.dto.PermDto;
import com.witdata.mysql.domain.entity.TPerm;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PermMapper {

    PermMapper INSTANCE = Mappers.getMapper(PermMapper.class);

    PermDto toPermDto(TPerm tPerm);

    TPerm toTPerm(PermDto permDto);

    List<PermDto> toPermDtoList(List<TPerm> tPermList);


}
